import store from '../store'

export default function hasBtnPermission(permission) {
  return store.state.user.buttons.indexOf(permission) !== -1
}
